package com.fyl.pattern.state.before;

/**
 * 电梯接口
 */
public interface ILift {
    //定义四个电梯状态的常量
    int OPENING_STATE = 1;
    int CLOSING_STATE = 2;
    int RUNNING_STATE = 3;
    int STOPPING_STATE = 4;

    //设置当前电梯状态
    void setState(int state);

    //操作电梯
    void open();
    void close();
    void run();
    void stop();
}
